<template>
    <Form
            :form-items="formItems"
    ></Form>
</template>

<script>
    import Form from '../../../../common-util/src/components/page/Form.vue'
    export default {
        components:{
            Form
        },
        data(){
            return {
                formItems:[
                                        {
                        field: {
                            name: 'userId'
                        },
                        element:{
                            label: '用户id,冗余',
                            required: true
                        }
                    },
                    {
                        field: {
                            name: 'userVacationId'
                        },
                        element:{
                            label: '假期id',
                            required: true
                        }
                    },
                    {
                        field: {
                            name: 'typeDictId'
                        },
                        element:{
                            label: '类型，字典id',
                            required: true
                        }
                    },
                    {
                        field: {
                            name: 'vacationSumMin'
                        },
                        element:{
                            label: '假期分钟数',
                            required: true
                        }
                    },
                    {
                        field: {
                            name: 'isVacationSumPlus'
                        },
                        element:{
                            label: '假期分钟数是否加，不是加就是减',
                            required: true
                        }
                    },
                    {
                        field: {
                            name: 'remark'
                        },
                        element:{
                            label: '备注',
                            required: true
                        }
                    },
                    {
                        element:{
                            type: 'button',
                            button:[
                                {
                                    action: 'submit',
                                    requestMethod:'post',
                                    url: this.$baseURL.attend +  '/attend/uservacationsumrecord',
                                    label: '保存'
                                },
                                {
                                    action: 'reset',
                                    label: '重置',
                                    type: 'default'
                                }
                            ]
                        }
                    }
                ]
            }
        },
        methods:{
        }
    }
</script>

<style scoped>

</style>